#include "Component\Renderer\Base\RendererControl.h"
#include <fstream>
#include <iostream>
#include <string>

std::vector<SakuraAge::RendererControl*> SakuraAge::RendererControl::renderers;

void SakuraAge::RendererControl::OnRenderer() {}

SakuraAge::RendererControl::RendererControl() { renderers.push_back(this); }

SakuraAge::Vector2 SakuraAge::RendererControl::GetStandardPosition(
    Vector2 pos) {
  return Vector2(pos.x * 2 / WSize->x - 1, pos.y * 2 / WSize->y - 1);
}

SakuraAge::Vector2 SakuraAge::RendererControl::GetStandardScale(Vector2 pos) {
  return Vector2(pos.x * 2 / WSize->x, pos.y * 2 / WSize->y);
}

SakuraAge::Vector2* SakuraAge::RendererControl::WSize;

SakuraAge::RendererControl::Color* SakuraAge::RendererControl::BackGroundColor =
    new SakuraAge::RendererControl::Color{1, 0, 1, 1};
